﻿


/*
以下代码使用T4自动生成，如果修改那么重新生成后将丢失！
*/
using System.Xml.Linq;
using System.Xml;
using System.Text;
using System.Collections.Generic;




namespace YLPublicService.TransferModel
{
    public class Process
    {
		    public class Images
    {
					    public class Image
    {
				/// <summary>
		/// 
		/// </summary>
		public string mName {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mWidth {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mHeigth {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mIsDraw {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mSaveName {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mFontSize {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mColor {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mBackColor {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mHorizontalAlign {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mIsBold {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mStringType {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mMatchRegx {get;set;}
			/// <summary>
		/// 
		/// </summary>
		public string mReplaceRegx {get;set;}
	            public static Image FromXML(string value)
            {
            var root =XElement.Parse(value);
             return FromXML(root);
            }
        	public static Image FromXML(XElement value)
			{
				var root=value;
				var _Image=new Image();

											_Image.mName=root.Element("Name").Value;
				  							_Image.mWidth=root.Element("Width").Value;
				  							_Image.mHeigth=root.Element("Heigth").Value;
				  							_Image.mIsDraw=root.Element("IsDraw").Value;
				  							_Image.mSaveName=root.Element("SaveName").Value;
				  							_Image.mFontSize=root.Element("FontSize").Value;
				  							_Image.mColor=root.Element("Color").Value;
				  							_Image.mBackColor=root.Element("BackColor").Value;
				  							_Image.mHorizontalAlign=root.Element("HorizontalAlign").Value;
				  							_Image.mIsBold=root.Element("IsBold").Value;
				  							_Image.mStringType=root.Element("StringType").Value;
				  							_Image.mMatchRegx=root.Element("MatchRegx").Value;
				  							_Image.mReplaceRegx=root.Element("ReplaceRegx").Value;
				  				return _Image;
			}
          public override string ToString()
        {
            StringBuilder sb =new StringBuilder();
            sb.Append("<Image>");
                sb.AppendFormat("<Name>{0}</Name>",this.mName	.ToString());
                    sb.AppendFormat("<Width>{0}</Width>",this.mWidth	.ToString());
                    sb.AppendFormat("<Heigth>{0}</Heigth>",this.mHeigth	.ToString());
                    sb.AppendFormat("<IsDraw>{0}</IsDraw>",this.mIsDraw	.ToString());
                    sb.AppendFormat("<SaveName>{0}</SaveName>",this.mSaveName	.ToString());
                    sb.AppendFormat("<FontSize>{0}</FontSize>",this.mFontSize	.ToString());
                    sb.AppendFormat("<Color>{0}</Color>",this.mColor	.ToString());
                    sb.AppendFormat("<BackColor>{0}</BackColor>",this.mBackColor	.ToString());
                    sb.AppendFormat("<HorizontalAlign>{0}</HorizontalAlign>",this.mHorizontalAlign	.ToString());
                    sb.AppendFormat("<IsBold>{0}</IsBold>",this.mIsBold	.ToString());
                    sb.AppendFormat("<StringType>{0}</StringType>",this.mStringType	.ToString());
                    sb.AppendFormat("<MatchRegx>{0}</MatchRegx>",this.mMatchRegx	.ToString());
                    sb.AppendFormat("<ReplaceRegx>{0}</ReplaceRegx>",this.mReplaceRegx	.ToString());
                sb.Append("</Image>");
             return sb.ToString();
            }
    }
		public  List<Image> mImage =new List<Image>();
			            public static Images FromXML(string value)
            {
            var root =XElement.Parse(value);
             return FromXML(root);
            }
        	public static Images FromXML(XElement value)
			{
				var root=value;
				var _Images=new Images();

								  foreach(XElement child in root.Elements())
				  {
				  					_Images.mImage.Add(Image.FromXML(child.ToString()));
									}
									return _Images;
			}
          public override string ToString()
        {
            StringBuilder sb =new StringBuilder();
            sb.Append("<Images>");
            foreach(var child in mImage)
            {                 sb.AppendFormat("{0}",child.ToString());
            }
                    sb.Append("</Images>");
             return sb.ToString();
            }
    }
            
		/// <summary>
		/// 
		/// </summary>
		public Images mImages= new Images();                                                                                                                                                                  
            public static Process FromXML(string value)
            {
            var root =XElement.Parse(value);
             return FromXML(root);
            }
        	public static Process FromXML(XElement value)
			{
				var root=value;
				var _Process=new Process();

										 _Process.mImages=Images.FromXML(root.Element("Images").ToString());
				 				return _Process;
			}
          public override string ToString()
        {
            StringBuilder sb =new StringBuilder();
            sb.Append("<Process>");
        sb.Append(this.mImages.ToString());
            sb.Append("</Process>");
             return sb.ToString();
            }
    }

}